package com.zut.subject.application.convert;

import com.zut.subject.application.dto.SubjectCategoryDto;
import com.zut.subject.domain.entity.SubjectCategoryBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface convertSubjectCategory {

    convertSubjectCategory INSTANCE = Mappers.getMapper(convertSubjectCategory.class);
    //Dto转换为Bo
    SubjectCategoryBo toSubjectCategory(SubjectCategoryDto subjectCategoryDto);
    //Bo转换为Dto
    List<SubjectCategoryDto> toSubjectCategory(List<SubjectCategoryBo> subjectCategoryBo);

    SubjectCategoryDto toSubjectCategory(SubjectCategoryBo subjectCategoryBO);

}
